package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linju
 * @since 2019-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PumpStationDeviceMapping对象", description="")
public class PumpStationDeviceMapping extends Model<PumpStationDeviceMapping> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "物联网设备外键")
    private Long deviceId;

    @ApiModelProperty(value = "泵站外键")
    private Long pumpStationId;

    @ApiModelProperty(value = "泵站名称")
    private String name;

    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @ApiModelProperty(value = "泵站液位设备编号")
    private String code;

    @ApiModelProperty(value = "泵站设备液位的设定值")
    private String value;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
